import axios from '@/utils/request.js'

function del(id) {
    return axios({
        url: '/api/carousel/del/' + id,
        method: 'POST'
    })
}


function add(data) {
    return axios({
        url: '/api/carousel/add',
        method: 'POST',
        data
    })
}


function all() {
    return axios({
        url: '/api/carousel/admin/all',
        method: 'POST'
    })

}

export {del, add, all}